package com.sp.scmdb.bean;

import org.joda.time.DateTime;

public class AlarmBean extends PageBean {

	private String alarmType;

	private Integer state;

	private String startTime;

	private String endTime;

	private String depName;

	private String empName;

	private String areaName;

	private String empID;

	private String name;

	private DateTime inTime;

	private DateTime outTime;
	
	private String confirmType;
	
	private String rmk;

	public String getRmk() {
		return rmk;
	}

	public void setRmk(String rmk) {
		this.rmk = rmk;
	}

	public String getConfirmType() {
		return confirmType;
	}

	public void setConfirmType(String confirmType) {
		this.confirmType = confirmType;
	}

	public DateTime getInTime() {
		return inTime;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public void setInTime(DateTime inTime) {
		this.inTime = inTime;
	}

	public DateTime getOutTime() {
		return outTime;
	}

	public void setOutTime(DateTime outTime) {
		this.outTime = outTime;
	}

	public String getEmpID() {
		return empID;
	}

	public void setEmpID(String empID) {
		this.empID = empID;
	}

	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}

	public String getDepName() {
		return depName;
	}

	public void setDepName(String depName) {
		this.depName = depName;
	}

	public String getEmpName() {
		return empName;
	}

	public void setEmpName(String empName) {
		this.empName = empName;
	}

	/** 关联人员信息供查询人员详细界面使用 */
	private EmployeeBean employeeBean;

	/**
	 * @return the employeeBean
	 */
	public EmployeeBean getEmployeeBean() {
		return employeeBean;
	}

	/**
	 * @param employeeBean
	 *            the employeeBean to set
	 */
	public void setEmployeeBean(EmployeeBean employeeBean) {
		this.employeeBean = employeeBean;
	}

	public String getAlarmType() {
		return alarmType;
	}

	public void setAlarmType(String alarmType) {
		this.alarmType = alarmType;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((alarmType == null) ? 0 : alarmType.hashCode());
		result = prime * result + ((employeeBean == null) ? 0 : employeeBean.hashCode());
		result = prime * result + ((endTime == null) ? 0 : endTime.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result + ((startTime == null) ? 0 : startTime.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AlarmBean other = (AlarmBean) obj;
		if (alarmType == null) {
			if (other.alarmType != null)
				return false;
		} else if (!alarmType.equals(other.alarmType))
			return false;
		if (employeeBean == null) {
			if (other.employeeBean != null)
				return false;
		} else if (!employeeBean.equals(other.employeeBean))
			return false;
		if (endTime == null) {
			if (other.endTime != null)
				return false;
		} else if (!endTime.equals(other.endTime))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (startTime == null) {
			if (other.startTime != null)
				return false;
		} else if (!startTime.equals(other.startTime))
			return false;
		return true;
	}

}
